package com.potenza.training.dictionary.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 题目类型
 * 
 * @author lihonggang
 * @email lihonggang@gmail.com
 * @date 2021-07-22 15:57:42
 */
@Data
@TableName("tb_subject_type")
@AllArgsConstructor
@NoArgsConstructor
public class SubjectTypeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 类型名称
	 */
	private String typeName;
	/**
	 * 
	 */
	private Integer pid;

	@TableField(exist = false)
	private List<SubjectTypeEntity> children;
}
